import { defineStore } from "pinia";
import {pinia} from '@/store/index'

export const usePluginStore  = defineStore('plugin', {
  state: () => ({
    printerStatus: null, //打印机状态
    isConnect: false,//打印机是否连接
    connectDeviceName: '', //当前连接打印机name
  }),
  actions: {},
  persist: {
    enabled: true,
    strategies: [
      {
        key: 'plugin-store',
      },
    ],
  },
})
export const usePluginStoreWithOut = () => {
  return usePluginStore(pinia)
}
